package jfox.platform.datadict.dao;

import java.util.List;

import jfox.platform.datadict.entity.DictCategory;
import jfox.platform.infrastructure.DataAccessObject;

/**
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public interface DictCategoryDAO extends DataAccessObject{

	DictCategory getCategoryById(long id);
	
	DictCategory getCategoryByCode(String code);

    List<DictCategory> getAllCategory();
    
    void insertCategory(DictCategory dictCategory);
    
    int deleteCategory(long id);
    
    int updateCategory(DictCategory dictCategory);
}
